package com.inspur.iaic.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@ConfigurationProperties(prefix = "nginxlog")
@Component
public class NginxLogProperties {
	private String accesslogPath = "/usr/local/nginx/logs/access.log";
	private int accesslogWarnnumber = 7000;
	private int realTimeAccessLogCacheCapacity = 600;
	private int warnAccessLogCacheCapacity = 600;

	public String getAccesslogPath() {
		return accesslogPath;
	}

	public void setAccesslogPath(String accesslogPath) {
		this.accesslogPath = accesslogPath;
	}

	public int getAccesslogWarnnumber() {
		return accesslogWarnnumber;
	}

	public void setAccesslogWarnnumber(int accesslogWarnnumber) {
		this.accesslogWarnnumber = accesslogWarnnumber;
	}

	public int getRealTimeAccessLogCacheCapacity() {
		return realTimeAccessLogCacheCapacity;
	}

	public void setRealTimeAccessLogCacheCapacity(int realTimeAccessLogCacheCapacity) {
		this.realTimeAccessLogCacheCapacity = realTimeAccessLogCacheCapacity;
	}

	public int getWarnAccessLogCacheCapacity() {
		return warnAccessLogCacheCapacity;
	}

	public void setWarnAccessLogCacheCapacity(int warnAccessLogCacheCapacity) {
		this.warnAccessLogCacheCapacity = warnAccessLogCacheCapacity;
	}
}
